package com.dianxin.smartpark.web.aclapp;

import com.chinatelecom.response.common.CommonResponseBody;
import com.dianxin.acl.api.dto.AclAppInfoDTO;
import com.dianxin.smartpark.service.aclAppInfo.AclAppInfoService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 获取应用相关的全局信息（返回appId，tenantId，orgCode）
 * @Authort Ricartc
 */
@RequestMapping("/smartpark/aclAppInfo")
@RestController
public class AclAppController {
    @Resource
    AclAppInfoService aclAppInfoService;

    @RequestMapping("/getAclAppInfo")
    public CommonResponseBody<AclAppInfoDTO> getAclAppInfo(){
        return aclAppInfoService.getAppInfo();
    }
}
